package com.skyward.android.androiddemo2.adapter;

import com.skyward.android.androiddemo2.R;
import com.skyward.android.androiddemo2.bean.FifteenBean;
import com.skyward.android.androiddemo2.view.FifteenFutureWeather;

import java.util.List;

/**
 * Created by skyward on 2017/4/10.
 * email:
 */

public class BrokenLineAdapter extends BaseRecyclerAdapter<FifteenBean,BaseViewHolder>{
    private List<FifteenBean> mList;
    public BrokenLineAdapter(int layoutResId, List<FifteenBean> data) {
        super(layoutResId, data);
        this.mList = data;
    }

    @Override
    protected void bindTheData(BaseViewHolder holder, FifteenBean data, int position) {
        FifteenFutureWeather brokenLineView = holder.findViewById(R.id.broke_line);

        brokenLineView.setMinTemperature(18);
        brokenLineView.setMaxTemperature(31);
        brokenLineView.setData(mList,position);

    }


}
